using UnityEngine;
using System.Collections;

/**
 * Hook to destroy a GameObject after a given time since level load.
 **/
public class DestroyAfter : MonoBehaviour {
	public float killAtTime;
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (killAtTime < Time.timeSinceLevelLoad)
			Destroy( this.gameObject );
	}
}
